﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using csharp_books_415.Data.Models;

namespace csharp_books_415.Data
{
    public class BooksDbContext : DbContext 
    {
        public BooksDbContext() : base("Books415DbConnection")
        {

        }
        // DbSet - gateway to the data / actual table
        public DbSet<Author> Authors { get; set; }
        public DbSet<Book> Books { get; set; }
        public DbSet<Review> Reviews { get; set; }
    }
}
